var testhttp = require('../testhttp');
var count = 0;
var keepAliveAgent = require('../Agent.js'); 
var agent = new keepAliveAgent({ maxSockets: 5 }); 
for(var i= 0;i<1000;i++) {
	setTimeout(function() {
		testhttp.getOriginal('http://www.baidu.com',function(err,body) {
			console.log(count++, err);
		},agent);
	},0);
}
